package com.example.yls.myapplication;
import android.os.Binder;
import java.util.Date;
import java.text.SimpleDateFormat;
/**
 * Created by yls on 2018/12/17.
 */

public class MyBinder extends Binder {
    public int add(int a,int b){
        return a+b;
    }
    public String getTime(){
        Date date = new Date();
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        return format.format(date);
    }
}
